<?php /* Smarty version Smarty-3.1.12, created on 2013-03-09 16:11:44
         compiled from "/www/htdocs/w00fc40b/dota2league/templates/profile/bestRankings.tpl" */ ?>
<?php /*%%SmartyHeaderCode:6242185495113bcc7784fa8-61343743%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'cba7f03436308ddf72ef7f9debd85580f109ea54' => 
    array (
      0 => '/www/htdocs/w00fc40b/dota2league/templates/profile/bestRankings.tpl',
      1 => 1362841874,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '6242185495113bcc7784fa8-61343743',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_5113bcc77868e6_99825815',
  'variables' => 
  array (
    'bestRankings' => 0,
    'v' => 0,
    'steamID' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5113bcc77868e6_99825815')) {function content_5113bcc77868e6_99825815($_smarty_tpl) {?><h3>Best Matchmode Rankings</h3>
<?php if (count($_smarty_tpl->tpl_vars['bestRankings']->value)>0&&is_array($_smarty_tpl->tpl_vars['bestRankings']->value)){?>
<table class="table table-striped">
	<thead>
		<tr align="center">
			<th>Rank</th>
			<th>Type</th>
			<th>Mode</th>
			<th>Elo</th>
			<th>Ranking</th>
		</tr>
	</thead>
	<tbody>
		<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['bestRankings']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
		<tr class="<?php echo $_smarty_tpl->getSubTemplate ('prototypes/positionTrClass.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('position'=>$_smarty_tpl->tpl_vars['v']->value['position']), 0);?>
">
			<td><strong><?php echo $_smarty_tpl->tpl_vars['v']->value['position'];?>
.</strong></td>
			<td><?php echo $_smarty_tpl->getSubTemplate ("prototypes/matchTypeIcon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('MatchTypeID'=>$_smarty_tpl->tpl_vars['v']->value['MatchTypeID']), 0);?>
</td>
			<td><span class="t" title="<?php echo $_smarty_tpl->tpl_vars['v']->value['MatchMode'];?>
"><?php echo $_smarty_tpl->tpl_vars['v']->value['MatchModeShortcut'];?>
</span></td>
			<td><?php echo $_smarty_tpl->tpl_vars['v']->value['Elo'];?>
</td>
			<td><?php echo $_smarty_tpl->getSubTemplate ("prototypes/medalIcon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('elo'=>$_smarty_tpl->tpl_vars['v']->value['Elo']), 0);?>
</td>
		</tr>
    	<?php } ?>
	</tbody>
</table>

<?php }else{ ?>
<div class="alert fade in">No Rankings found!</div>
<?php }?>
<p>
<a href="ladder.php?ID=<?php echo $_smarty_tpl->tpl_vars['steamID']->value;?>
">View All Rankings <i class="icon-double-angle-right"></i></a></p><?php }} ?>